package appfight.level;

import org.anddev.andengine.entity.modifier.MoveModifier;

import appfight.monster.Monster;
import appfight.monster.SkillFactory.Skill;

public class GameLevelConnectionServerFight extends GameLevelPeopleFight
{
	public GameLevelConnectionServerFight(String CharacterName,Monster mo)
	{
		super("character1.png",CharacterName,mo);
	}
	
	@Override
	public void PlayerSelect(String SkillName)
	{
		for(Skill s : ASkillList)
		{
			if(s.SkillName.equals(SkillName))
			{
				ASkill = s;
			}
		}
		
		if(BSkill!=null)
		{
			Fight();
		}
		
		try
		{
			this._activity.communication.sendMessage(SkillName);
		}
		catch(Exception e)
		{
			
		}
	}
	
		@Override
		public void ConnectionCommand(String str)
		{
			this.TargetSelect(str);
		}
		
		
		@Override
		public void PlayerWin()
		{
			super.PlayerWin();
			_activity.communication.close();
		}
		
		@Override
		public void PlayerLose()
		{
			super.PlayerLose();
			_activity.communication.close();
		}


}
